<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>添加路由器</title>
    <link href="../../../js/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .mt10{margin-top: 10px;}
        #form1{padding: 10px;}
        .field-name{float: left;width: 100px;}
        input{width: 200px;}
        .required{color: #ff0000;}
        .sex{display: inline-block;width: 50px;}
        .class{display: inline-block;width: 100px;}
    </style>
</head>
<body>
    <form action="" name="form1" id="form1" method="post">
        <div>
            <span class="field-name">路由器编号：</span>
            <input type="text" name="bbId" id="bbId" />
            <span class="required">*</span>
        </div>
    </form>

    <script type="text/javascript" src="../../../js/jquery/jquery-1.3.2.min.js"></script>
    <script type="text/javascript">
        $(function(){
            var url = decodeURI(window.location.href);
            var ind = url.indexOf("?");
            if(ind >-1){
                //开发是url上传来的为要修改数据的ID，发送请求道后台，取出该条数据的信息，进行填充
                var params = url.substring(ind+1,url.length);
                $("#bbId").val(params.split("=")[1]);
            }

        });
    </script>
</body>
</html>